<?php
$mysql = new SaeMysql();
$c = new SaeCounter;
$kv = new SaeKV();

while(true){
	$len = $c->get('len');
	$nel = $c->get('nel');

	if($len != $nel){
		
		
		$sql = "SELECT * FROM wx_wall WHERE wx_wall_id = $len";
		$data = $mysql->getData($sql);

		$c->set('nel', $len);

		$data = json_encode($data);

		echo $data;
		exit();
	}
}
?>